home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / LAYOUT.PAK / LAYOUT.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  1KB  |  51 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1993, 1995 by Borland International, All Rights Reserved
  4. //----------------------------------------------------------------------------
  5. #ifndef LAYOUT_H
  6. #define LAYOUT_H
  7.  
  8. #if !defined(OWL_DECMDIFR_H)
  9. # include <owl/decmdifr.h>
  10. #endif
  11. #if !defined(WINSYS_COLOR_H)
  12. # include <winsys/color.h>
  13. #endif
  14. #include "layout.rh"
  15. #include "laydia.h"
  16.  
  17. //
  18. // class TMyChildWindow
  19. // ~~~~~ ~~~~~~~~~~~~~~
  20. class TMyChildWindow : public TWindow {
  21.   public:
  22.     TMyChildWindow(TWindow* parent, int id, char far* title,
  23.                    TColor color);
  24. };
  25.  
  26. const int MaxChildren = 5;
  27.  
  28. //
  29. // class TMyLayout
  30. // ~~~~~ ~~~~~~~~~
  31. class TMyLayout : public TLayoutWindow {
  32.   public:
  33.     TMyLayout(TWindow* parent);
  34.  
  35.   protected:
  36.     void SetupWindow();
  37.  
  38.   private:
  39.     void CmLayout();
  40.     void CmReLayout();
  41.  
  42.   private:
  43.     TChildInfo  ChildInfo[MaxChildren+1];
  44.  
  45.     TLayoutDialog* LayoutDialog;
  46.  
  47.   DECLARE_RESPONSE_TABLE(TMyLayout);
  48. };
  49.  
  50. #endif
  51.